﻿<%@page import="com.hospital.model.YaoName"%>
<%@page import="com.hospital.util.DbUtil"%>
<%@page import="java.util.Map"%>
<%@page import="com.hospital.model.PatientInfo"%>
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link href="images/main.css" rel="stylesheet" type="text/css" />
<link  href="../css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/trim.js"></script>
<script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
	function sub() {
		var yplb = document.getElementById("yplb");
		if(trim(yplb.value).length == 0){
			alert("药品库房不能为空。");
			yplb.focus();
		}else{
			document.forms["form"].submit();
		}
	} 
</script>
</head>
<body>
	<jsp:include page="right_top.jsp"></jsp:include>
	<!-- TOP START -->
	<div id="right_font">
		<img src="images/main_14.gif" /> 您现在所在的位置：首页 &rarr; 药物基础管理&rarr; <span
			class="bfont">进货订单维护</span>
	</div>
	<!-- TOP END -->
	<hr >
	<form action="MedicineInAndOut?method=modifyjinhuo" method="post" name="form" id="form">
	<%
		String id = null;
		id = request.getParameter("id");
		String sql = "select * from t_stroage where id = " + id;
		Map<String, Object> map  = (Map<String, Object>)DbUtil.find(sql).get(0);
	%>
		<table style="margin-top: 30px;">
			<tr height="30px;">
				<td><font color="#FF0000">*药品编号</font>：</td>
				<td><input type="text" name="ypmc" id="ypmc" value="<%=map.get("ypmc")%>" disabled="disabled"/></td>
				<td width="220px;"><span id="ypmc"></span></td>
			</tr>
			<tr height="30px;">
				<td><font color="#FF0000">*进货时间</font>：</td>
				<td><input type="text" name="jhrq" id="jhrq" value="<%=map.get("jhrq")%>" disabled="disabled"/></td>
				<td width="220px;"><span id="jhrq"></span></td>
			</tr>
			<tr height="30px;">
				<td><font color="#FF0000">*产品批号</font>：</td>
				<td><input type="text" name="ypph" id="ypph" value="<%=map.get("ypph")%>" disabled="disabled"/></td>
				<td width="220px;"><span id="ypph"></span></td>
			</tr>
			<tr height="30px;">
				<td><font color="#FF0000">*药品产地</font>：</td>
				<td><input type="text" name="ypcd" id="ypcd" value="<%=map.get("ypcd")%>" disabled="disabled"/></td>
				<td width="220px;"><span id="ypcd"></span></td>
			</tr>
			<tr height="30px;">
				<td><font color="#FF0000">*药品单位</font>：</td>
				<td><input type="text" name="ypdw" id="ypdw" value="<%=map.get("ypdw")%>" disabled="disabled"/></td>
				<td width="220px;"><span id="ypdw"></span></td>
			</tr>
			<tr height="30px;">
				<td><font color="#FF0000">*药品剂型</font>：</td>
				<td><input type="text" name="ypjx" id="ypjx" maxlength="12" value="<%=map.get("ypjx")%>" disabled="disabled"/></td>
				<td width="220px;"><span id="ypjx"></span></td>
			</tr>
			<tr height="30px;">
				<td><font color="#FF0000">*药品库房</font>：</td>
				<td><input type="text" name="yplb" id="yplb" maxlength="12" value="<%=map.get("yplb")%>" disabled="disabled"/></td>
				<td>&nbsp;</td>
			</tr>
			<tr height="30px;">
				<td><font color="#FF0000">*</font>药品进价&nbsp; ：</td>
				<td><input type="text" name="ypjj" id="ypjj" maxlength="12" value="<%=map.get("ypjj")%>"/></td>
				<td>&nbsp;</td>
			</tr>
			<tr height="30px;">
				<td><font color="#FF0000">*</font>药品数量&nbsp; ：</td>
				<td><input type="text" name="ypsl" id="ypsl" maxlength="12" value="<%=map.get("ypsl")%>"/></td>
				<td>&nbsp;</td>
			</tr>
			<tr height="30px;">
				<td><font color="#FF0000">*</font>有效期(月)&nbsp; ：</td>
				<td><input type="text" name="yxq" id="yxq" maxlength="12" value="<%=map.get("yxq")%>"/></td>
				<td>&nbsp;</td>
			</tr>
			<tr height="30px;">
				<td colspan="2" align="center">
					&nbsp;<input type="hidden" name="id" value="<%=id %>"/> ${rs}
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr height="30px;">
				<td><input type="hidden" name="yplb" id="yplb" maxlength="12" value="<%=map.get("yplb")%>"/></td>
				<td>&nbsp;</td>
			</tr>
			<tr height="30px;">
				<td colspan="2" align="center">
					<input type="button" value="提交" onclick="sub();"/>&nbsp;&nbsp;
				</td>
				<td>&nbsp;</td>
			</tr>
		</table>
	</form>
</body>
</html>